#Flask_WTF插件。后端

from flask import Flask,render_template,url_for
from forms import Login


app = Flask(__name__)
app.config['SECRET_EKY']= 'sadklfla3244'

@app.route('/')
def hello_world():
    return 'Hello World!'


@app.route('/login')
def login():
    form = Login()
    if form.validate_on_submit():
        email = form.data['email']
        password = form.password.data
        nickname = form.nickname.data
    return render_template('login.html',form=form)

if __name__ == '__main__':
    app.run()